package com.sphd.emanu.activity.gooddetails;

import android.content.Context;

import com.sphd.emanu.mvp.BasePresenter;
import com.sphd.emanu.mvp.BaseView;

import java.util.List;

import okhttp3.MultipartBody;
import okhttp3.RequestBody;

/**
 * MVPPlugin
 * 邮箱 784787081@qq.com
 */

public class GooddetailsContract {
    interface View extends BaseView {

        void setRes(int res);
    }

    interface Presenter extends BasePresenter<View> {

        void addOrEditeFood(String name, Integer cateid, MultipartBody.Part imgs, String trim1, String trim2, boolean checked,
                            boolean checked1, Integer oid);
        void addCommodityNoImage(String name, Integer cateid, String trim1, String trim2, boolean checked,
                            boolean checked1, Integer oid);

        void updateCommodity(Integer id, String name, Integer cateid, MultipartBody.Part imgs, String trim1, String trim2, boolean checked,
                             boolean checked1, Integer oid);

        void updateCommodityNoImage(Integer id, String name, Integer cateid, String trim1, String trim2, boolean checked,
                             boolean checked1, Integer oid);
    }
}
